	 <script>
       jQuery(window).load(function() {
        jQuery('#sliderOne').nivoSlider();
    });
      </script>
	  <?php
	  $args = array( 
           'post_type' => 'slidershow',
           'posts_per_page' => $slider_num_of_item_display
      );
      global $wp_query;
      $query_args = array_merge( $wp_query->query, $args );
	  query_posts($query_args);
	  ?>
        	<div id="slider">
			
			<ul>
			<div id="sliderOne" class="nivoSlider">
			
			<?php
		     $count=0;
			 while(have_posts()): the_post();
			  $enable_title=get_meta_option('enable_slidershow_title',get_the_ID());
			  $enable_desc=get_meta_option('enable_slidershow_desc',get_the_ID());
			  $enable_image=get_meta_option('enable_slidershow_image',get_the_ID());
			  $enable_link=get_meta_option('slidershowesc_html__xternal_link',get_the_ID());
			  
			  if($enable_image =='true') :
			  $count++;
			?>
			
                <img title="#item<?php echo $count; ?>"   src="<?php echo get_meta_option('upload_slidershow_image',get_the_ID());?>" data-thumb="<?php echo $enable_image;?>" alt="" />
            <?php
			  endif;
			  endwhile;
			?>   	
			</div>
			<?php 
			$count=0;
			  while(have_posts()): the_post();
			  if($enable_image =='true') :		
			   $count++;	
			?>
			
            <div id="item<?php echo $count; ?>" class="nivo-html-caption">
                    <div class="caption-txt">
					
                        <?php if($enable_title) : ?>
						
						<h2><?php the_title(); ?></h2>
						
						<?php endif; ?>
						<?php if($enable_desc) : ?>
						
                        <p><?php echo get_meta_option('slidershow_desc',get_the_ID()); ?></p>
						
                        <?php endif; ?>
						<?php if($enable_link <> '') : ?>
						
						<div><a href="<?php echo get_meta_option('slidershowesc_html__xternal_link',get_the_ID()); ?>">read more</a></div>
						
						<?php endif ?>
                    </div>
            </div>
			
			<?php
			  endif;
			  endwhile;
			?>    
			 
            </ul>
			</div>
              	<div class="slider-shadow">&nbsp;</div>
            